package com.itheima.day01;

public class MyThread extends Thread {
    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    public void run(){
        for (int i = 0; i < 10; i++) {
            System.out.println(getName()+i);
        }
        }
    }
